﻿using System;

namespace Shuba.Web.bulk_upload
{
    public partial class branch_rollout_version_list_excel : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Response.Clear();
            Response.Buffer = true;
            Response.ContentType = "application/vnd.ms-excel";

            string txtSearch = Request["txtSearch"];
            string[] param = txtSearch.Split('~');
            var brollout = new Shuba.Business.branch_rollout_version();

            string ClusterID= param[1];
            string RegionID = param[2];
            if (RegionID == "ALL") RegionID = "%";
            if (ClusterID == "ALL") ClusterID = "%";

            var list = brollout.GetList(param[0], ClusterID, RegionID);

            rep1.DataSource = list;
            rep1.DataBind();
        }
    }
}
